﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Logado"] != null && (bool)Session["Logado"])
        {
            titulo_pagina1.Titulo = Session["Titulo"].ToString();
        }
        else
        {
            Response.Redirect("~/default.aspx");
        }
       
    }
}
